IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'RealmsAdminGetSubNodes')
	BEGIN
		DROP  Procedure  RealmsAdminGetSubNodes
	END

GO

CREATE Procedure RealmsAdminGetSubNodes
@SagaID int,
@RealmID int
AS
Select
r.RealmID,
r.CreatorID,
r.IsPrivate,
r.SagaID,
r.Title,
r.Summary,
r.ParentID
From Realm r
Where r.SagaID = @SagaID And r.ParentID = @RealmID


